fix(mavlink): update TransponderReport flag bitmask#27878
Open
anilkir wants to merge 3 commits into
Open
Conversation
Contributor
🔎 FLASH Analysispx4_fmu-v5x [Total VM Diff: -184 byte (-0.01 %)]px4_fmu-v6x [Total VM Diff: -184 byte (-0.01 %)]Updated: 2026-07-16T16:37:00 |
MaEtUgR
reviewed
Jul 14, 2026
MaEtUgR
force-pushed
the
ak/fix-transponder-adsb-flags
branch
from
July 16, 2026 12:20
ebafa04 to
b12684a
Compare
MaEtUgR
previously approved these changes
Jul 16, 2026
MaEtUgR
left a comment
Member
There was a problem hiding this comment.
Final change:
- Restructure transponder_report message to:
- Contain the new flags from MAVLink by @anilkir
- follow the new parsed message definition style closer with description, units, enum options directly after the field.
- Remove PX4 internal conflicting
RETRANSLATEflag but instead flag fake traffic asSIMULATEDand keep behavior to not publish fake data see #27878 (comment) - Direct assignment of flags field from/to MAVLink with asserts on the definition
- Line wrapping and reuse of
kDefaultFakeTrafficFlagsrefactor
Rebased on main after #26815 was merged.
JonasPerolini
approved these changes
Jul 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Solved Problem
TransponderReport.msgis missing MAVLink'sSIMULATED,VERTICAL_VELOCITY_VALID,BARO_VALID, andSOURCE_UATflags entirely (mavlink msg definition). ThePX4_ADSB_FLAGS_RETRANSLATEbit (256) also collides with MAVLink'sADSB_FLAGS_BARO_VALIDbit at the same value.Solution
PX4_ADSB_FLAGS_RETRANSLATEto bit 512 (unused by MAVLink'sADSB_FLAGSenum), resolving the collisionChangelog Entry
For release notes:
Alternatives
Test coverage
Context
Related links, screenshot before/after, video